package stark.app.function.g2048;

import com.stark.game2048.lib.Def2048GameActivity;

import stark.app.R;
import stark.app.databinding.ActivityGame2048DemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

/**
 * Author：daizhongbin on 2022/12/8
 * Email：1027154338@qq.com
 * Desc:
 */
public class Game2048DemoActivity extends BaseNoModelActivity<ActivityGame2048DemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.activity_game2048_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnNewGame.setOnClickListener(v -> {
            Def2048GameActivity.start(this, false);
        });
        mDataBinding.btnContinueGame.setOnClickListener(v -> {
            Def2048GameActivity.start(this, true);
        });
        mDataBinding.btnOpenMode.setOnClickListener(v -> {
            startActivity(OpenModeSelActivity.class);
        });
    }

    @Override
    protected void initData() {

    }
}
